package nl.weeaboo.sh.danmaku.commands;

import nl.weeaboo.sh.danmaku.ShotModel;
import nl.weeaboo.sh.danmaku.Spell;
import nl.weeaboo.sh.danmaku.SpellBook;
import nl.weeaboo.sh.danmaku.Universe;

public class TSolid extends Spell {

	private boolean solid;
	
	public TSolid(boolean solid) {
		this.solid = solid;
	}
	protected TSolid(TSolid t) {
		super(t);		
		solid = t.solid;
	}
	
	public TSolid clone() {
		return new TSolid(this);
	}
	
	@Override
	public void step(Universe u, SpellBook sb, ShotModel s) {
		s.setSolid(solid);
		finish();
	}
	
}
